package com.freesky.biz.icbc.service.impl;

import com.freesky.biz.icbc.domain.TMarketingActivity;
import com.freesky.biz.icbc.mapper.MarketingActivityMapper;
import com.freesky.biz.icbc.service.IMarketingActivityService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class MarketingActivityServiceImpl implements IMarketingActivityService {

    private static final Logger logger = LoggerFactory.getLogger(MarketingActivityServiceImpl.class);

    @Autowired
    private MarketingActivityMapper marketingActivityMapper;

    @Override
    public List<TMarketingActivity> selectMarketingActivityList(TMarketingActivity entity) {
        return marketingActivityMapper.selectMarketingActivityList(entity);
    }

    @Override
    public TMarketingActivity selectMarketingActivityById(String id) {
        return marketingActivityMapper.selectMarketingActivityById(id);
    }

    @Override
    public int insertMarketingActivity(TMarketingActivity entity) {
        return marketingActivityMapper.insertMarketingActivity(entity);
    }

    @Override
    public int updateMarketingActivity(TMarketingActivity entity) {
        return marketingActivityMapper.updateMarketingActivity(entity);
    }

    @Override
    public int deleteMarketingActivityById(String id) {
        return marketingActivityMapper.deleteMarketingActivityById(id);
    }

    @Override
    public int deleteMarketingActivityByIds(String[] ids) {
        return marketingActivityMapper.deleteMarketingActivityByIds(ids);
    }
}
